package com.itasura.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @author sailor wang
 * @date 2018/11/22 11:03 AM
 * @description
 */
@Slf4j
public class App {
    public static void main(String[] args) {
        Coffee coffee = new MochaCoffee();
        String mark = coffee.mark();
        Double price = coffee.cost();

        log.info("mark -> {}, price -> {}", mark,price);

        coffee = new DecoratedCoffee(coffee);
        mark = coffee.mark();
        price = coffee.cost();
        log.info("mark -> {}, price -> {}", mark,price);

    }
}